package com.jsh.erp.domain.param;

import lombok.Data;

@Data
public class CashReportParam {
    private int pageNo;
    private int pageSize;
    private String receiptNumber;
    private String outBillNumber;
    private String beginTime;
    private String endTime;
    private Long salesMan;
    private Long supplier;
    private Long status;


    public Integer getPageNo() {
        if (pageNo <= 0) {
            return 0;
        }
        return pageNo - 1;
    }

    public Integer getPageSize() {
        if (pageSize == 0) {
            pageSize = 20;
        }
        return pageSize;
    }
}
